#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>

int main()
{
	int fd = open("my.p", O_WRONLY);
	if(fd == -1) perror("open"), exit(1);
	char buff[100] = {};
	printf("begin write\n");
	write(fd, "leihoua", 7);
	close(fd);
	return 0;
}
